<template>
	<view class="all-box">
		<!-- 审核中 -->
		<view v-if="type == 1" class="">
			<image class="examine-icon" src="https://image.nanjingtouyang.com/touy/2024/05/17/e73faf47d44b47c69a101c86e26baa88.png" mode=""></image>
			<view class="examine-text">平台审核中，请耐心等待～</view>
		</view>
		
		
		<!-- 审核不通过 -->
		<view v-else>
			<image class="examine-icon" src="https://image.nanjingtouyang.com/touy/2024/05/17/d1009038b30e45269f8ba35bf8799cee.png" mode=""></image>
			<view class="examine-refuse">
				<view class="">
					审核结果：<text style="color: #FF5750;">不通过</text>
				</view>
				<view class="">
					备 注：{{ reason }}
				</view>
			</view>
		</view>
		
		
		<view class="buttom-buttons" v-if="type == 2">
			<view class="buttons-baoming" @click="toAuth">重新认证</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data(){
			return{
				type: '',
				reason: ''
			}
		},
		onLoad(option){
			this.type = option.type
			this.reason = option.reason
		},
		methods: {
			toAuth() {
				uni.redirectTo({
					url:'../../pages/auth-detail/index?isEdit=true'
				})
			}
		},
	}
</script>

<style lang="scss">
	page {
		background-color: #fff;
	}
	.all-box {
		text-align: center;
		.examine-icon {
			width: 424rpx;
			height: 306rpx;
			margin-top: 150rpx;
		}
		.examine-text {
			font-weight: 500;
			font-size: 28rpx;
			color: #4B9A40;
			margin-top: 60rpx;
		}
		.examine-refuse {
			width: 650rpx;
			background: #F9F9F9;
			border-radius: 10rpx;
			padding: 40rpx;
			box-sizing: border-box;
			display: inline-block;
			font-weight: 500;
			font-size: 28rpx;
			color: #333333;
			line-height: 60rpx;
			text-align: left;
		}
	}
	
	.buttom-buttons {
		box-shadow: 0rpx 0rpx 2rpx 0rpx rgba(0,0,0,0.3);
		position: fixed;
		bottom: 0;
		left: 0;
		background-color: #fff;
		width: 100%;
		display: flex;
		height: 176rpx;
		padding: 28rpx 0 0 0;
		box-sizing: border-box;
		z-index: 99;
		
		.buttons-baoming {
			width: 690rpx;
			height: 80rpx;
			background: linear-gradient( 171deg, #60C100 0%, #1BB15A 100%, #3F8E5E 100%);
			border-radius: 40rpx;
			margin-left: 44rpx;
			line-height: 80rpx;
			text-align: center;
			font-weight: 500;
			font-size: 28rpx;
			color: #FFFFFF;
		}
		
	}
</style>